import request from '@/utils/request'

// 1.获取地址列表
export const getAddressListApi = () => {
  return request.get('/address/list')
}

// 2.添加新地址
export const addNewAddressApi = (name, phone, region, value, label) => {
  return request.post('/address/add', {
    form: {
      name,
      phone,
      region: [
        {
          value,
          label
        }
      ]
    }
  })
}
